package com.hmall.common.search;

import com.hmall.common.pojo.OrderDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient("orderservice")
public interface OrderClient {

    @PostMapping("/order/{id}")
    OrderDetail findOrderDetailById(@PathVariable("id") Long orderId);



}
